﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true"
    CodeBehind="wFrmCanibalizacionAprobar.aspx.cs" Inherits="Crosland.Automotriz.Web.canibalizacion.wFrmCanibalizacionAprobar" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <div class="main-header" style="width: 100%;">
        <div class="main-titulo">
            Canibalización</div>
    </div>
    <div class="content-form">
        <table>
            <tr>
             
             
                <td>
                   <dx:ASPxButton ID="btnAprobar" runat="server" Text="Aprobar Solicitud" 
                        AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                        onclick="btnAprobar_Click">
                        <Image Url="~/Images/email1.PNG">
                        </Image>
                        <Paddings Padding="4px" />
                    </dx:ASPxButton>
                
                </td>
               
                <td>
                    <dx:ASPxButton ID="btnSalir" runat="server" Text="Salir" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        Width="100px" OnClick="btnSalir_Click">
                        <Image Url="~/Images/logout.png">
                        </Image>
                        <Paddings Padding="4px" />
                    </dx:ASPxButton>
                </td>
            </tr>
        </table>

       


        <dx:ASPxRoundPanel ID="rpContenido" runat="server" Width="200px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
            CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
            GroupBoxCaptionOffsetY="-19px" HeaderText="" ShowHeader="False" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
            View="GroupBox">
            <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
            <HeaderStyle>
                <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
            </HeaderStyle>
            <NoHeaderTopEdge BackColor="White">
            </NoHeaderTopEdge>
            <PanelCollection>
                <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                 <table>
        <tr>
        <td>
        
        
            <asp:Label ID="Label1" runat="server" Text="Estado:"></asp:Label>
        
        
        </td>
        <td>
        
            <dx:ASPxComboBox ID="cboEstado" runat="server" 
                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                CssPostfix="Office2010Blue" Spacing="0" 
                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                </LoadingPanelImage>
                <LoadingPanelStyle ImageSpacing="5px">
                </LoadingPanelStyle>
                <Paddings Padding="4px" />
            </dx:ASPxComboBox>
        
        </td>  
        <td>
        
            <dx:ASPxButton ID="btnFiltrar" runat="server" Text="Filtrar" 
                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                CssPostfix="Office2010Blue" OnClick="btnFiltrar_Click" 
                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="100px">
                <Paddings Padding="4px" />
            </dx:ASPxButton>
        
        </td>      
        </tr>
        
        </table>


                    <table style="width: 98%;">
                        <tr>
                            <td style="width: 98%;">
                                <dx:ASPxGridView ID="grdCanibalizacionListado" runat="server" AutoGenerateColumns="False"
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                    Width="100%" KeyFieldName="ID_LOG_CANIBALIZACION_CAB" OnAfterPerformCallback="grdCanibalizacionListado_AfterPerformCallback">
                                    <Columns>
                                        <dx:GridViewDataTextColumn Caption="Nro.Lote" FieldName="NRO_LOTE" VisibleIndex="2"
                                            Width="80px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Cod.Org.Venta" FieldName="COD_ORG_VENTAS" VisibleIndex="3"
                                            Width="80px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Nro.Motor" FieldName="NRO_MOTOR" VisibleIndex="4"
                                            Width="120px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="VIN" FieldName="VIN" VisibleIndex="5" 
                                            Width="50px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Año modelo " FieldName="ANIO_MODELO" VisibleIndex="6"
                                            Width="20px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Año fabricación" FieldName="ANIO_FABRICACION"
                                            VisibleIndex="7" Width="20px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Jerarquia" FieldName="DES_JERARQUIA_SUP" VisibleIndex="8"
                                            Width="120px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Color" FieldName="DES_COLOR" VisibleIndex="9"
                                            Width="100px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Estado Aprobación" FieldName="ESTADO" 
                                            VisibleIndex="13" Width="80px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Fec.Canibalización" FieldName="FECHA_CANIBALIZACION"
                                            VisibleIndex="10" Width="50px">
                                            <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                                            </PropertiesTextEdit>
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Fec.Armado" FieldName="FECHA_ARMADO" VisibleIndex="11"
                                            Width="50px">
                                            <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                                            </PropertiesTextEdit>
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Id_log_Canibalizacion_Cab" FieldName="ID_LOG_CANIBALIZACION_CAB"
                                            Visible="False" VisibleIndex="1">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn FieldName="ID_ESTADO" ShowInCustomizationForm="True" 
                                            Visible="False" VisibleIndex="17">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Estado Armado" FieldName="ESTADO_ARMADO" 
                                            ShowInCustomizationForm="True" VisibleIndex="12">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn FieldName="USUARIO" ShowInCustomizationForm="True" 
                                            Visible="False" VisibleIndex="14">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn FieldName="NOMBRE_APELLIDOS" 
                                            ShowInCustomizationForm="True" Visible="False" VisibleIndex="15">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn FieldName="CORREO" ShowInCustomizationForm="True" 
                                            Visible="False" VisibleIndex="16">
                                        </dx:GridViewDataTextColumn>
                                    </Columns>
                                    <SettingsBehavior AllowFocusedRow="True" />
                                    <SettingsPager PageSize="15">
                                    </SettingsPager>
                                    <Settings ShowFilterRow="True" />
                                    <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                        <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                        </LoadingPanelOnStatusBar>
                                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                        </LoadingPanel>
                                    </Images>
                                    <ImagesFilterControl>
                                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                        </LoadingPanel>
                                    </ImagesFilterControl>
                                    <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                        </Header>
                                        <LoadingPanel ImageSpacing="5px">
                                        </LoadingPanel>
                                    </Styles>
                                    <StylesPager>
                                        <PageNumber ForeColor="#3E4846">
                                        </PageNumber>
                                        <Summary ForeColor="#1E395B">
                                        </Summary>
                                    </StylesPager>
                                    <StylesEditors ButtonEditCellSpacing="0">
                                        <ProgressBar Height="21px">
                                        </ProgressBar>
                                    </StylesEditors>
                                </dx:ASPxGridView>
                            </td>
                        </tr>
                    </table>
                    <table>
                        <tr>
                           
                            <td>
                                <dx:ASPxPopupControl ID="popupmsj" runat="server" AllowDragging="True" ClientInstanceName="popupmsj"
                                    CloseAction="None" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                    EnableViewState="False" HeaderText="Mensaje" Modal="True" PopupHorizontalAlign="WindowCenter"
                                    PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Width="300px" EnableHotTrack="False">
                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                    </LoadingPanelImage>
                                    <HeaderStyle>
                                        <Paddings PaddingLeft="7px" />
                                        <Paddings PaddingLeft="10px" PaddingTop="4px" PaddingRight="4px" PaddingBottom="4px" />
                                    </HeaderStyle>
                                    <LoadingPanelStyle ImageSpacing="5px">
                                    </LoadingPanelStyle>
                                    <ContentCollection>
                                        <dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" SupportsDisabledAttribute="True">
                                            <br />
                                            <dx:ASPxPanel ID="ASPxPanel2" runat="server" DefaultButton="btCreate">
                                                <PanelCollection>
                                                    <dx:PanelContent ID="Panelpopup" runat="server">
                                                        <table align="center">
                                                            <tr>
                                                                <td colspan="2">
                                                                    <dx:ASPxLabel ID="lblmsj" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                        CssPostfix="Office2010Blue">
                                                                    </dx:ASPxLabel>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="2">
                                                                    &nbsp;
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <table align="center">
                                                            <tr>
                                                                <td align="center" style="width: 215px">
                                                                    <dx:ASPxButton ID="btnAceptar" runat="server" Text="Aceptar" AutoPostBack="False"
                                                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                        <ClientSideEvents Click="function(s, e) {popupmsj.Hide();}" />
                                                                        <Image Url="~/Images/ok.png">
                                                                        </Image>
                                                                    </dx:ASPxButton>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </dx:PanelContent>
                                                </PanelCollection>
                                            </dx:ASPxPanel>
                                        </dx:PopupControlContentControl>
                                    </ContentCollection>
                                </dx:ASPxPopupControl>
                            </td>
                        </tr>
                     
                    </table>
                    <table>
                       <tr>
                        <td>
                        
                        <dx:ASPxPopupControl ID="PopupCorreo" runat="server" Height="150px" Width="450px"
                ClientInstanceName="PopupCorreo" AllowDragging="True" CloseAction="CloseButton"
                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                HeaderText="" Modal="True" PopupHorizontalAlign="WindowCenter"
                PopupVerticalAlign="WindowCenter" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                EnableHotTrack="False">
                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                </LoadingPanelImage>
                <HeaderStyle>
                    <Paddings PaddingLeft="7px" />
                </HeaderStyle>
                            <LoadingPanelStyle ImageSpacing="5px">
                            </LoadingPanelStyle>
                <ContentCollection>
                    <dx:PopupControlContentControl>
                       
                        <table>
                        <tr>
                        <td>
                        
                        
                        
                        
                        
                            Observación:</td>
                        </tr>

                         <tr>
                        <td>
                        
                        
                        
                        
                        
                            <dx:ASPxMemo ID="txtObservacion" runat="server" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" Height="100px" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="600px">
                            </dx:ASPxMemo>
                        
                        
                        
                        
                        
                        </td>
                        </tr>
                        
                        </table>

                        <table style="width:100%;">
                        <tr>
                        <td align="right">
                        

                            <dx:ASPxButton ID="btnEnviar" runat="server" Text="Aprobar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                OnClick="btnEnviar_Click">
                                <Image Url="~/Images/email1.PNG">
                                </Image>
                                <Paddings Padding="4px" />
                            </dx:ASPxButton>

                        
                        </td>  
                        <td>
                        
                            <dx:ASPxButton ID="btnRechazar" runat="server" Text="Rechazar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                OnClick="btnRechazar_Click">
                                <Image Url="~/Images/delete2.png">
                                </Image>
                                <Paddings Padding="4px" />
                            </dx:ASPxButton> 
                        
                        </td>                      
                        </tr>
                        
                        
                        </table>
                    </dx:PopupControlContentControl>
                </ContentCollection>
            </dx:ASPxPopupControl>
                        
                        
                        </td>                  
                        </tr>
                    
                    </table>
                </dx:PanelContent>
            </PanelCollection>
        </dx:ASPxRoundPanel>
    </div>
</asp:Content>
